package com.scu.hotelsystem.dao;

import com.scu.hotelsystem.pojo.GoodsCate;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface GoodsCateDao {

    @Select("select *from goods_cate")
    List<GoodsCate> finAll() throws Exception;

    @Insert("insert into goods_cate(id, name, price, param, desc, tag) values(#{id},#{name},#{price},#{param},#{desc},#{tag})")
    void save(GoodsCate goodsCate)throws Exception;
}
